<?php echo $this->render('/manage/header.phtml');?>
</head>
<body>
<div id="body-wrapper">
<?php echo $this->render('/manage/sidebar.phtml');?>
<div id="main-content">
    <h2>Most Viewed</h2>
    <div class="clear"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>Content box</h3>
        <div class="clear"></div>
      </div>
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
        <form method="post" action="<?php echo APPLICATION_URL; ?>/manage/save-mostviewed">
        	<table>
        		<thead>
        			<tr>
        				<th>ID</th>
        				<th>图片地址</th>
        				<th>标题</th>
        				<th>标题链接</th>
        				<th>分类名称</th>
        				<th>分类链接</th>
<!--         				<th>操作</th> -->
        			</tr>
        		</thead>
        		<tbody>
        			<?php
        				$tableInfo = Zend_Registry::get('database')->mostviewed;
        				foreach ($this->mostviewed as $value) {
					?>
        			<tr>
        				<td><input readOnly style="width:10px;border:none;" name="id[]" type="text" value="<?php echo $value[$tableInfo->id];?>" /></td>
        				<td><input name="picurl[]" type="text" value="<?php echo $value[$tableInfo->picurl];?>" /></td>
        				<td><input name="title[]" type="text" value="<?php echo $value[$tableInfo->title];?>" /></td>
        				<td><input name="titlelink[]" type="text" value="<?php echo $value[$tableInfo->titlelink];?>" /></td>
        				<td><input name="category[]" type="text" value="<?php echo $value[$tableInfo->category];?>" /></td>
        				<td><input name="categorylink[]" type="text" value=<?php echo $value[$tableInfo->categorylink];?> /></td>
<!--         				<td><a href="javascript:void(0);" title="Delete"><img src="/public/images/admin/icons/cross.png" alt="Delete"></a></td> -->
        			</tr>
        			<?php }?>
        			<tr>
        				<td colspan="6" style="text-align: center;">
        					<input type="reset" value="重置" />
        					<input type="submit" value="提交" />
        				</td>
        			</tr>
        		</tbody>
        	</table>
        </form>
        </div>
      </div>
    </div>
    <div class="clear"></div>
<?php echo $this->render('/manage/footer.phtml');?>
</div>
</div>
</body>
</html>